﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using Xyz.DataObjects;
using Xyz.DataObjects.Interfaces;
using Xyz.Service.DataTransferObjects;
using Xyz.Service.ServiceContracts;

namespace Xyz.Service
{
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
    public class CityService : ICityService
    {
        public static readonly ICityDao CityDao = DataAccess.CityDao;

        public List<CityDTO> GetAllCities()
        {
            return Mapper.ToDto(CityDao.GetAllCities());
        }
    }
}
